package com.yycx.dbr.boot.admin;

import com.github.xiaoymin.knife4j.spring.annotations.EnableKnife4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.bus.jackson.RemoteApplicationEventScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;


/**
 * 平台基础服务
 * 提供系统用户、权限分配、资源、客户端管理
 *
 * @author zyf
 *
 */
@EnableCaching
@EnableFeignClients(basePackages = {"com.yycx"})
@EnableDiscoveryClient
@SpringBootApplication(scanBasePackages = {"com.yycx","org.jeecg"})
@MapperScan(basePackages = {"com.yycx.**.mapper","org.jeecg.modules.**.mapper*"})
@RemoteApplicationEventScan(basePackages = "com.yycx")
@EnableKnife4j
public class AdminApplication {
    public static void main(String[] args) {
        SpringApplication.run(AdminApplication.class, args);
    }
}
